from sklearn.preprocessing import Binarizer
import numpy as np

np.random.seed(666)
x = np.random.normal(5, 7, [5, 3])
print(x)

x[:, 0] = Binarizer(threshold=5).fit_transform(x[:, 0].reshape(-1, 1)).ravel()
print(x)
